package jiaxintang.bookstore.dao;
import org.apache.ibatis.annotations.Mapper;

import jiaxintang.bookstore.domain.User;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.session.RowBounds;
import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    User findByUserName(String userName);
    List<User> query(Map<String, Object> params, RowBounds rowBounds);

    Integer queryCount(Map<String, Object> params);

    void insert(User user);

    void update(User user);
    List<User> findAll();
}
